package com.sjq.common.entity;

import java.io.Serializable;
import java.util.List;

public class JsTreeNode implements Serializable {

	private static final long serialVersionUID = 3369375440533207098L;

	private String id;
	private String name;
	private String pid;
	private String isParent;
	private String open;
	private Integer orderno;
	private List<JsTreeNode> children;

	public JsTreeNode() {

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIsParent() {
		return isParent;
	}

	public void setIsParent(String isParent) {
		this.isParent = isParent;
	}

	public Integer getOrderno() {
		return orderno;
	}

	public void setOrderno(Integer orderno) {
		this.orderno = orderno;
	}

	public List<JsTreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<JsTreeNode> children) {
		this.children = children;
	}

	public String getOpen() {
		return open;
	}

	public void setOpen(String open) {
		this.open = open;
	}

	@Override
	public String toString() {
		String idStr = id == null ? "null" : id;
		String fatherNodeStr = pid == null ? "null" : pid;
		String childNodeStr = children == null ? "null" : String
				.valueOf(children.size());
		return "JsTreeNode [id=" + idStr + ", isParent=" + isParent + ",open="
				+ open + ",pid=" + fatherNodeStr + ", children=" + childNodeStr+",orderno="+orderno
				+ ",  name=" + name + "]";
	}

}
